﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for GraphItemValue
/// </summary>
public class GraphItemValue
{
    public GraphItemValue()
    {
        //
        // TODO: Add constructor logic here
        //
    }
    public GraphItemValue(DateTime dt, double value)
    {
        this.When = dt;
        this.Value = value;
    }
    private DateTime When { get; set; }
    public double JSONDateTime
    {
        get
        {
            return (When - new DateTime(1970, 1, 1)).TotalMilliseconds;
        }
    }
    public double Value { get; set; }

}
